<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\admin\controller;

/**
 * 个人简历 控制器
 */
class Resume extends AdminBase
{

    /**
     * 个人简历列表
     */
    public function resumeList()
    {

        $this->assign('list', $this->logicResume->getResumeList());

        return $this->fetch('resume_list');
    }

    /**
     * 简历添加
     */
    public function resumeAdd()
    {

        IS_POST && $this->jump($this->logicResume->resumeEdit($this->param));

     

        return $this->fetch('resume_edit');
    }

    /**
     * 简历编辑
     */
    public function resumeEdit()
    {

        IS_POST && $this->jump($this->logicResume->resumeEdit($this->param));

        $info = $this->logicResume->getResumeInfo(['id' => $this->param['id']]);

        $this->assign('info', $info);

        return $this->fetch('resume_edit');
    }

    /**
     * 简历删除
     */
    public function resumeDel($id = 0)
    {

        $this->jump($this->logicResume->resumeDel(['id' => $id]));
    }
}
